function [ notPrime ] = CheckPrime(Ntest)
%CheckPrime Checks to see if Ntest is prime
%   This code taken directly from example

notPrime=0;
for ii=2:Ntest-1
    if Ntest/ii==round(Ntest/ii)
        notPrime=1;
    end
end

end

